import request from '@/utils/request'

// 查询设备sos报警内容列表
export function listSosAlarm(query) {
  return request({
    url: '/device/sosAlarm/list',
    method: 'get',
    params: query
  })
}

// 查询设备sos报警内容详细
export function getSosAlarm(id) {
  return request({
    url: '/device/sosAlarm/' + id,
    method: 'get'
  })
}

// 新增设备sos报警内容
export function addSosAlarm(data) {
  return request({
    url: '/device/sosAlarm',
    method: 'post',
    data: data
  })
}

// 修改设备sos报警内容
export function updateSosAlarm(data) {
  return request({
    url: '/device/sosAlarm',
    method: 'put',
    data: data
  })
}

// 删除设备sos报警内容
export function delSosAlarm(id) {
  return request({
    url: '/device/sosAlarm/' + id,
    method: 'delete'
  })
}
